package com.qianyu.versioncontrolcore.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "AreaVo")
public class AreaVo {

    @Data
    @ApiModel(value = "AreaVo&AreaListVo")
    public static class AreaListVo {
        /**
         * 区域编码
         */
        @NotNull(message = "[区域编码]不能为空")
        @ApiModelProperty("区域编码")
        private String adcode;
        /**
         * 行政区名称
         */
        @NotNull(message = "[行政区名称]不能为空")
        @ApiModelProperty("行政区名称")
        private String name;
    }
}
